#ifndef PREVIEWWIDGET_HPP
#define PREVIEWWIDGET_HPP

#include <QWidget>

namespace Mpv {

    class PreviewWidget : public QWidget {
    public:
        explicit PreviewWidget(QWidget *parent = nullptr);

        ~PreviewWidget() override;

        void startPreview(const QString &filepath, int timestamp);

        void clearAllTask();

        void startPlay();

    private:
        void setupUI();

        class PreviewWidgetPrivate;

        QScopedPointer<PreviewWidgetPrivate> d_ptr;
    };

} // namespace Mpv

#endif // PREVIEWWIDGET_HPP
